package com.qdu.bussiness.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qdu.common.annotation.Excel;
import com.qdu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 物料信息对象 bus_item
 * 
 * @author qdu
 * @date 2022-03-03
 */
public class BusItem extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String itemName;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String itemCode;

    /** 物料规格 */
    @Excel(name = "物料规格")
    private String itemSpecification;

    /** 物料颜色 */
    @Excel(name = "物料颜色")
    private String itemColor;

    /** 物料类型 */
    @Excel(name = "物料类型")
    private String itemType;

    @Excel(name = "物料单位价格")
    private BigDecimal itemUnitPrice;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setItemName(String itemName) 
    {
        this.itemName = itemName;
    }

    public String getItemName() 
    {
        return itemName;
    }
    public void setItemCode(String itemCode) 
    {
        this.itemCode = itemCode;
    }

    public String getItemCode() 
    {
        return itemCode;
    }
    public void setItemSpecification(String itemSpecification) 
    {
        this.itemSpecification = itemSpecification;
    }

    public String getItemSpecification() 
    {
        return itemSpecification;
    }
    public void setItemColor(String itemColor) 
    {
        this.itemColor = itemColor;
    }

    public String getItemColor() 
    {
        return itemColor;
    }
    public void setItemType(String itemType) 
    {
        this.itemType = itemType;
    }

    public String getItemType() 
    {
        return itemType;
    }

    public BigDecimal  getItemUnitPrice() {
        return itemUnitPrice;
    }

    public void setItemUnitPrice(BigDecimal  itemUnitPrice) {
        this.itemUnitPrice = itemUnitPrice;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("itemName", getItemName())
            .append("itemCode", getItemCode())
            .append("itemSpecification", getItemSpecification())
            .append("itemColor", getItemColor())
            .append("itemType", getItemType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
